<layout name="page" />
<block name="content">
	{:widget('page_header/simple',array('name'=>'编辑报表'))}

	<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   >
		<input type="hidden" id="ajax" name="ajax" value="0">
		<input type="hidden" id="id" name="id" value="{$vo.id}">	
		<input type="hidden" id="opmode" name="opmode" value="edit">

		
			<label class="input-label" for="name">标题：</label>
			
				<input class="input" type="text" id="name" name="name" value="{$vo.name}"  check="required" info="请输入文件名">
			</div>
		</div>
		<foreach name="field_list" val="field_vo">
			{:widget('UserDefineField/edit',array($field_vo))}
		</foreach>
		
			<div class="col-xs-12">
				<textarea class="editor" id="content" name="content" style="width:100%;height:300px;" check="required" info="请输入内容">{$vo.content}</textarea>
			</div>
		</div>
		
			<label class="input-label" for="name">附件：</label>
			
				<div>
					{:widget('file_upload/edit',array('add_file'=>$vo['add_file']))}
				</div>
			</div>
		</div>
		<div class="action">
			<a class="btn btn-normal" onclick="save()">保存</a>
			<a  class="btn btn-return" onclick="go_return_url();">取消</a>
		</div>
	</form>
</block>
<block name="js">
	<script type="text/javascript">
		function save() {
			send_form("form_data", "{:url('save')}");
		}
	</script>
</block>